package com.xmall.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xmall.define.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单退款退货历史记录
 * </p>
 *
 * @author xmall
 * @since 2023-11-30
 */
@Getter
@Setter
@TableName("order_refund_history")
public class OrderRefundHistory extends BaseEntity {

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 订单子项编号
     */
    private Long orderItemId;

    /**
     * 退货数量
     */
    private Integer refundQuantity;

    /**
     * 退款退货状态（0待审核 1同意 2拒绝 3待收货 4已收货 5已退款）
     */
    private Integer refundStatus;

    /**
     * 退款类型（0仅退款 1退款退货 2换货）
     */
    private Integer refundType;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 退款原因
     */
    private String applyReason;

    /**
     * 拒绝原因
     */
    private String refuseReason;

    /**
     * 审核时间
     */
    private Date auditTime;
}
